package com.comit.appointment.producer;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.IOException;

@Service
public class MessageProducer {


	@Autowired
	private RabbitTemplate rabbitTemplate;
	
	public void sendMessage(Object message) {
		rabbitTemplate.convertAndSend("changanexchange","changanroutingkey",message);
	}
	
	
 
}